package cliVet.classesBasicas;

public class Servicos {

	private int codigoServico;
	private String descricaoservico;

	public Servicos() {

	}

	public int getCodigoServico() {
		return codigoServico;
	}

	public void setCodigoServico(int codigoServico) {
		this.codigoServico = codigoServico;
	}

	public String getDescricaoservico() {
		return descricaoservico;
	}

	public void setDescricaoservico(String descricaoservico) {
		this.descricaoservico = descricaoservico;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + codigoServico;
		result = prime
				* result
				+ ((descricaoservico == null) ? 0 : descricaoservico.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Servicos other = (Servicos) obj;
		if (codigoServico != other.codigoServico)
			return false;
		if (descricaoservico == null) {
			if (other.descricaoservico != null)
				return false;
		} else if (!descricaoservico.equals(other.descricaoservico))
			return false;
		return true;
	}

}
